namespace AsyncDemo.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class AddBlogCategory : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.Blogs", "BlogDetail_DateCreated", c => c.DateTime(defaultValueSql:"GETDATE()"));
            AddColumn("dbo.Blogs", "BlogDetail_Description", c => c.String(maxLength: 50));
            AddColumn("dbo.Blogs", "BlogDetail_TimeStamp", c => c.Binary(nullable: false, fixedLength: true, timestamp: true, storeType: "rowversion"));
            AddColumn("dbo.Blogs", "Category", c => c.String());
        }
        
        public override void Down()
        {
            DropColumn("dbo.Blogs", "Category");
            DropColumn("dbo.Blogs", "BlogDetail_TimeStamp");
            DropColumn("dbo.Blogs", "BlogDetail_Description");
            DropColumn("dbo.Blogs", "BlogDetail_DateCreated");
        }
    }
}
